package com.freeland.client2009.webservices;

import javax.jws.WebParam;
import javax.jws.WebService;

/**
 * 
 * @author HuYanping 2009-12-09
 *
 */
@WebService
public interface UserService {
	/**
	 * 新增接口的用户信息
	 * @param sCooperationId 合作商ID
	 * @param sUserId 用户ID
	 * @param sPassword 用户密码
	 * @param iAreaId 地区ID
	 * @param sUserName 用户名称
	 * @param sUserIp 用户IP
	 * @param sUserAddr 用户地址
	 * @param sQQNum 用户QQ
	 * @param sPhone 用户电话
	 * @param sContact 用户联系人
	 * @param sMac 物理地址
	 * @param sUntil 有效期限 格式：yyyy-mm-dd 23:59:59
	 * @param sUserType 用户类型（4，数据E房,5,公众信产用户 )
	 * @param sPcCount 客户端电脑数量
	 * @return 新增结果
	 */
	public int UserRegister(@WebParam(name = "sCooperationId")String sCooperationId,
			@WebParam(name = "sUserId")String sUserId,
			@WebParam(name = "sPassword")String sPassword,
			@WebParam(name = "iAreaId")int iAreaId,
			@WebParam(name = "sUserName")String sUserName,
			@WebParam(name = "sUserIp")String sUserIp,
			@WebParam(name = "sUserAddr")String sUserAddr,
			@WebParam(name = "sQQNum")String sQQNum,
			@WebParam(name = "sPhone")String sPhone,
			@WebParam(name = "sContact")String sContact,
			@WebParam(name = "sMac")String sMac,
			@WebParam(name = "sUntil")String sUntil,
			@WebParam(name = "sPcCount")String sPcCount,
			@WebParam(name = "sUserSecondType")String sUserSecondType
			);
	/**
	 * 修改接口用户的信息
	 * @param sCooperationId 合作商ID
	 * @param sUserId 用户ID
	 * @param sOldPassword 用户旧密码
	 * @param sNewPassword 用户新密码
	 * @param sUserState 用户状态
	 * @param sUserName 用户名称
	 * @param sUserIp 用户IP
	 * @param sUserAddr 用户地址
	 * @param sQQNum 用户QQ
	 * @param sPhone 用户电话
	 * @param sContact 用户联系人
	 * @param sAreaId 地区ID
	 * @param sMac 物理地址
	 * @param sUntil 有效期限 格式：yyyy-mm-dd 23:59:59
	 * @param sPcCount 客户端电脑数量
	 * @return 修改结果
	 */
	public int UserEdit(@WebParam(name = "sCooperationId")String sCooperationId,
			@WebParam(name = "sUserId")String sUserId,
			@WebParam(name = "sOldPassword")String sOldPassword,
			@WebParam(name="sNewPassword")String sNewPassword,
			@WebParam(name="sUserState")String sUserState,
			@WebParam(name = "sUserName")String sUserName,
			@WebParam(name = "sUserIp")String sUserIp,
			@WebParam(name = "sUserAddr")String sUserAddr,
			@WebParam(name = "sQQNum")String sQQNum,
			@WebParam(name = "sPhone")String sPhone,
			@WebParam(name = "sContact")String sContact,
			@WebParam(name = "sAreaId")String sAreaId,
			@WebParam(name = "sMac")String sMac,
			@WebParam(name = "sUntil")String sUntil,
	        @WebParam(name = "sPcCount")String sPcCount,
			@WebParam(name = "sUserSecondType")String sUserSecondType);
}
